<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('detail/index')}">用户列表</a></li>
			<li class="active"><a>用户详情</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('detail/infoPost')}">
			<div class="form-group">
				<label for="input-u_phone" class="col-sm-2 control-label"><span class="form-required">*</span>手机号</label>
				<div class="col-md-6 col-sm-10">
					<input type="hidden" name="id" value="{$detail.id}" />
					<input type="text" class="form-control" id="input-u_phone" value="{$detail.u_phone}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_nickname" class="col-sm-2 control-label"><span class="form-required">*</span>昵称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-u_nickname" name="u_nickname" value="{$detail.u_nickname}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_sex" class="col-sm-2 control-label"><span class="form-required">*</span>性别</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="u_sex">
						<option value="0" <if condition="$detail['u_sex'] eq 0" >selected </if>>保密</option>
						<option value="1" <if condition="$detail['u_sex'] eq 1" >selected </if>>男</option>
						<option value="2" <if condition="$detail['u_sex'] eq 2" >selected </if>>女</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_age" class="col-sm-2 control-label"><span class="form-required">*</span>年龄</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-u_age" name="u_age" value="{$detail.u_age}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_province" class="col-sm-2 control-label">省</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-u_province" name="u_province" value="{$detail.u_province}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_city" class="col-sm-2 control-label">市</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-u_city" name="u_city" value="{$detail.u_city}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_region" class="col-sm-2 control-label">区</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-u_region" name="u_region" value="{$detail.u_region}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_score" class="col-sm-2 control-label"><span class="form-required">*</span>经验值</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-u_score" name="u_score" value="{$detail.u_score}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_balance" class="col-sm-2 control-label"><span class="form-required">*</span>账户余额</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-u_balance" value="{$detail.u_balance/100}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_use" class="col-sm-2 control-label"><span class="form-required">*</span>累计消费</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-u_use" value="{$detail.u_use/100}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_obtain" class="col-sm-2 control-label"><span class="form-required">*</span>累计获得</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-u_obtain" value="{$detail.u_obtain/100}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label for="input-u_createtime" class="col-sm-2 control-label"><span class="form-required">*</span>注册日期</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-u_createtime" value="{$detail.u_createtime}" disabled>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>状态</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="u_status">
						<option value="10" <if condition="$detail['u_status'] eq 10" >selected </if>>启用</option>
						<option value="20" <if condition="$detail['u_status'] eq 20" >selected </if>>停用</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>头像</label>
				<div class="col-md-6 col-sm-10">
					<img src="{$detail.u_avatar}" width="128">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">修改</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>